import styled from "styled-components";

export const PlayerWrap = styled.div`
  position: fixed;
  zoom: 1;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  width: 100%;
  z-index: 1002;
  .ico {
    margin: 1px 6px 0 0;
    float: left;
  }
  .playerBox {
    height: 53px;
    background-position: 0 0;
    background-image: url(${require("@/assets/img/playbar_sprite.png")
      .default});
    position: absolute;
    top: -53px;
    width: 100%;
    .playerAutoBox {
      color: #fff;
      height: 47px;
      margin-top: 6px;
      position: relative;
      .player-pic-box {
        height: 47px;
        display: flex;
        align-items: center;
        .player-pic {
          background-position: 0px -79px;
          width: 34px;
          height: 35px;
          display: block;
          position: relative;
          img {
            width: 34px;
            height: 35px;
          }
          .msk {
            position: absolute;
            top: 0px;
            left: 0px;
            display: block;
            width: 34px;
            height: 35px;
            background-image: url(${require("@/assets/img/playbar.png")
              .default});
            background-position: 0 -80px;
          }
        }
      }
      .play-mp3 {
        width: 466px;
        height: 37px;
        margin-left: 15px;
        float: left;
        position: relative;
        margin-top: 5px;
        .songName {
          position: absolute;
          left: 0;
          .s-n {
            font-size: 14px;
            color: #ccc;
          }
          .zj-name {
            color: #9b9b9b;
            font-size: 12px;
            margin-left: 15px;
          }
        }
        .ant-slider {
          margin: 20px 0 0 0;
          width: 466px;
          .ant-slider-handle {
            background-image: url(${require("@/assets/img/sprite_icon.png")
              .default});
            margin-top: -8px;
            width: 22px;
            height: 24px;
            background-color: transparent;
            background-position: 0 -250px;
            border: none;
            :focus {
              box-shadow: 0 0px 0px #ccc;
            }
          }
          .ant-slider-track {
            background-image: url(${require("@/assets/img/progress_bar.png")
              .default});
            height: 9px;
            background-position: 0px -66px;
          }
          .ant-slider-rail {
            height: 9px;
            background: url(${require("@/assets/img/progress_bar.png")}) right 0;
          }
        }
      }
      .player-time {
        height: 100%;
        display: flex;
        align-items: center;
        margin: 0 25px;
        margin-top: 3px;
      }
      .play-right-func {
        width: 87px;
        height: 100%;
        display: flex;
        align-items: center;
        float: left;
        .player-list {
          width: 25px;
          height: 25px;
          background-image: url(${require("@/assets/img/player_list.png")
            .default});
          background-position: 0 0;
          margin-left: 5px;
          :hover {
            background-position: 0 -25px;
          }
        }
        .player-add {
          width: 25px;
          height: 25px;
          background-position: -90px -162px;
          margin-left: 5px;
          :hover {
            background-position: -90px -188px;
          }
        }
        .player-forw {
          width: 25px;
          height: 25px;
          background-position: -116px -162px;
          margin-left: 5px;
          :hover {
            background-position: -116px -188px;
          }
        }
      }
      .player-line {
        width: 2px;
        height: 25px;
        background-position: -148px -247px;
        margin: 0px 5px;
        margin-top: 12px;
      }
      .player-right-vxl {
        height: 100%;
        width: 114px;
        display: flex;
        align-items: center;
        .player-voice {
          width: 25px;
          height: 25px;
          background-position: 0 -247px;
          margin-left: 5px;
          :hover {
            background-position: -29px -247px;
          }
        }
        .player-loop {
          width: 25px;
          height: 25px;
          background-position: -3px -343px;
          margin-left: 5px;
          :hover {
            background-position: -33px -343px;
          }
        }
        .player-lists {
          width: 58px;
          padding-left: 21px;
          line-height: 25px;
          background-position: -46px -68px;
          margin-left: 5px;
          text-align: center;
          margin-top: 1px;
          text-decoration: none;
          :hover {
            background-position: -46px -98px;
          }
        }
      }
      .songListBox {
        position: absolute;
        bottom: 46px;
        left: 0;
        width: 986px;
        height: 301px;
        display: none;

        .listhd {
          padding: 0 5px;
          height: 40px;
          background-position: 0 0;
          position: relative;
          .listhdc {
            h4 {
              height: 39px;
              line-height: 39px;
              font-size: 14px;
              color: #e2e2e2;
              position: absolute;
              left: 25px;
            }

            .addall {
              left: 398px;
              position: absolute;
              top: 12px;
              height: 15px;
              line-height: 15px;
              cursor: pointer;
              color: #e2e2e2;
              :hover .ico-add {
                background-position: -24px -20px;
              }
              .ico-add {
                width: 16px;
                height: 16px;
                background-position: -24px 0;
              }
            }
            .clearAll {
              position: absolute;
              left: 490px;
              top: 12px;
              height: 15px;
              line-height: 15px;
              cursor: pointer;
              color: #e2e2e2;
              :hover .ico-clear {
                background-position: -51px -20px;
              }
              .ico-clear {
                width: 13px;
                height: 16px;
                background-position: -51px 0;
              }
            }
            .lytit {
              position: absolute;
              left: 595px;
              top: 0;
              width: 346px;
              text-align: center;
              height: 39px;
              line-height: 39px;
              color: #fff;
              font-size: 14px;
            }
            .f-thide {
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
              word-wrap: normal;
            }
            .f-ff0 {
              font-family: Arial, Helvetica, sans-serif;
            }
            .close {
              position: absolute;
              top: 6px;
              right: 8px;
              width: 30px;
              height: 30px;
              overflow: hidden;
              text-indent: -999px;
              cursor: pointer;
              background-position: -195px 9px;
              :hover {
                background-position: -195px -20px;
              }
            }
          }
        }
        .listbd {
          height: 260px;
          position: relative;
          opacity: 0.9;
          /* width: 976px; */
          background-position: -1014px 0;
          background-repeat: repeat-y;
          .listbd-left {
            position: absolute;
            left: 2px;
            top: 0;
            z-index: 4;
            height: 260px;
            width: 557px;
            overflow: hidden;
            .nosong {
              color: #aaa;
              padding-top: 85px;
              text-align: center;
              line-height: 43px;
              position: relative;
              .splitD {
                position: absolute;
                height: 260px;
                width: 6px;
                background-color: #000;
                opacity: 0.5;
                right: 0;
                top: 0;
              }
              .ico-face {
                float: none;
                display: inline-block;
                position: relative;
                top: -4px;
                width: 36px;
                height: 29px;
                margin-right: 3px;
                background-position: -138px 0;
                vertical-align: middle;
              }
            }
            .song {
              ul {
                position: absolute;
                overflow: hidden;
                overflow-y: scroll;
                height: 100%;
                padding-right: 10px;
                ::-webkit-scrollbar {
                  width: 4px;
                  background: #000;
                  opacity: 0.5;
                }
                ::-webkit-scrollbar-thumb {
                  /*滚动条里面小方块*/
                  width: 4px;
                  border-radius: 5px;
                  height: 100px;
                  cursor: pointer;
                  background: #868686;
                  border: 1px solid #a6a6a6;
                  opacity: 0.8;
                }
                .innerbox::-webkit-scrollbar-track {
                  /*滚动条里面轨道*/
                  border-radius: 0;
                  background: rgba(0, 0, 0, 0.1);
                }
                ::after {
                  content: "";
                  display: block;
                  overflow: hidden;
                  clear: both;
                }
                .showPlay {
                  background-color: green;
                }
                li {
                  width: 100%;
                  float: left;
                  height: 28px;
                  line-height: 28px;
                  cursor: pointer;
                  :hover {
                    background-color: green;
                    .iconFour {
                      display: block !important;
                    }
                  }
                  .songPlay {
                    width: 20px;
                    padding-left: 10px;
                    float: left;
                    height: 28px;
                    line-height: 28px;
                    .songPlayIcn {
                      display: none;
                      margin-top: 8px;
                      width: 10px;
                      height: 13px;
                      background: url(${require("@/assets/img/playlist.png")
                          .default})
                        no-repeat 0 9999px;
                      background-position: -182px 0;
                    }
                    .showPlay {
                      display: block;
                    }
                  }
                  .songName {
                    float: left;
                    padding-left: 10px;
                    width: 256px;
                    overflow: hidden;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                  }
                  .song-icon {
                    position: relative;
                    width: 88px;
                    float: left;
                    padding-left: 10px;
                    line-height: 28px;
                    height: 28px;
                    overflow: hidden;
                    .iconFour {
                      display: none;
                      position: absolute;
                      right: 0;
                      top: 0;
                      width: 100px;
                      height: 23px;
                      .icon {
                        float: right;
                        overflow: hidden;
                        margin: 7px 0 0 10px;
                        text-indent: -9999px;
                        height: 16px;
                        cursor: pointer;
                      }
                      .icon-del {
                        width: 13px;
                        background-position: -51px 0px;
                        :hover {
                          background-position: -51px -20px;
                        }
                      }
                      .icon-dl {
                        width: 14px;
                        background-position: -57px -50px;
                        :hover {
                          background-position: -80px -50px;
                        }
                      }
                      .icon-share {
                        width: 14px;
                        background-position: 0 0;
                        :hover {
                          background-position: 0 -20px;
                        }
                      }
                      .icon-add {
                        width: 16px;
                        background-position: -24px 0;
                        :hover {
                          background-position: -24px -20px;
                        }
                      }
                    }
                  }
                  .song-artist {
                    width: 80px;
                    color: #fff;
                    overflow: hidden;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    float: left;
                    text-align: center;
                    padding-left: 10px;
                    a {
                      color: #fff;
                    }
                  }
                  .song-time {
                    width: 45px;
                    padding-left: 10px;
                    line-height: 28px;
                    height: 28px;
                    float: left;
                    overflow: hidden;
                    cursor: pointer;
                  }
                  .song-lj {
                    width: 43px;
                    padding-left: 6px;
                    float: left;
                    a {
                      width: 14px;
                      height: 16px;
                      background-position: -80px 0;
                      float: right;
                      overflow: hidden;
                      margin: 7px 0 0 10px;
                      text-indent: -9999px;
                    }
                  }
                }
              }
            }
          }
          .listbd-right {
            position: absolute;
            right: 40px;
            top: 0;
            z-index: 4;
            margin: 21px 0 20px 0;
            height: 219px;
            width: 354px;
            overflow: hidden;
            overflow-y: scroll;
            ::-webkit-scrollbar {
              display: none;
            }
            .listbd-ab {
              position: absolute;
              right: 50%;
              top: 0;
              transform: translateX(50%);
              p {
                color: #989898;
                word-wrap: break-word;
                text-align: center;
                line-height: 32px;
                height: auto !important;
                height: 32px;
                min-height: 32px;
              }
              .whiteSong {
                color: #fff;
                font-size: 14px;
                -webkit-transition: color 0.7s linear;
                -moz-transition: color 0.7s linear;
                -o-transition: color 0.7s linear;
                transition: color 0.7s linear;
              }
            }
          }
          .listbd-middle {
            position: absolute;
            right: 2px;
            top: -1px;
            z-index: 2;
            width: 6px;
            height: 260px;
            background: #000;
            opacity: 0.5;
            cursor: pointer;
            .scrol {
              position: absolute;
              left: 0;
              top: 0px;
              width: 4px;
              border-radius: 5px;
              height: 100px;
              cursor: pointer;
              background: #868686;
              border: 1px solid #a6a6a6;
              opacity: 0.8;
            }
          }
        }
      }
      .isShow {
        display: block;
      }
    }
  }
`;

export const Control = styled.div`
  width: 137px;
  /* background-color: red; */
  height: 47px;
  line-height: 47px;
  display: flex;
  align-items: center;
  float: left;
  .prv {
    background-position: 0 -128px;
    display: block;
    height: 28px;
    width: 28px;
    margin-right: 8px;
    :hover {
      background-position: -30px -128px;
    }
  }
  .plv {
    display: block;
    width: 36px;
    height: 36px;
    background-position: 0 ${(props) => (props.isplaying ? "-165px" : "-204px")};
    margin-right: 8px;
    :hover {
      background-position: -40px
        ${(props) => (props.isplaying ? "-165px" : "-204px")};
    }
  }
  .nxt {
    background-position: -80px -128px;
    display: block;
    height: 28px;
    width: 28px;
    margin-right: 8px;
    :hover {
      background-position: -110px -128px;
    }
  }
`;
